<#
.SYNOPSIS  
    Stops all SharePoint related services.  
.DESCRIPTION  
    This script ensures all file locks and database connections are released.
.NOTES
    
.LINK  
    http://7up.codeplex.com 
#>
Write-Host ("   Stopping all SharePoint services ({0})..." -f [DateTime]::Now.ToString())

Stop-Service SPAdminV4
Stop-Service SPTimerV4
Stop-Service SPTraceV4
Stop-Service SPUserCodeV4
Stop-Service OSearch14
iisreset -stop
